﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AnaViewer
{
    public class SimpleItem : IItem
    {
        string title = "";
        string description = "";
        DateTime created = DateTime.Now;
        string author = "";
        string link = "";
        System.Drawing.Image faceImage = null;
        string pubDate = "";

        public SimpleItem(
        string title,
        string description,
        DateTime created,
        string author,
        string link,
        System.Drawing.Image faceImage,
        string pubDate)
        {
            this.title = title;
            this.description = description;
            this.created = created;
            this.author = author;
            this.link = link;
            this.faceImage = faceImage;
            this.pubDate = pubDate;
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get { return title; } }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get { return description; } }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Created { get { return created; } }
        /// <summary>
        /// 作者 Creator
        /// </summary>
        public string Author { get { return author; } }
        /// <summary>
        /// 链接
        /// </summary>
        public string Link { get { return link; } }
        /// <summary>
        /// 头像
        /// </summary>
        public System.Drawing.Image FaceImage { get { return faceImage; } }

        public string PubDate { get { return pubDate; } }
    }
}
